{{ template "header" . }}
{{ template "navlist" . }}

<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
    <div class="layadmin-header">
        <div class="layui-card layui-breadcrumb" lay-filter="breadcrumb" style="visibility: visible;">
            <a lay-href="">主页</a><span lay-separator="">/</span>
            <a><cite>根据数据库生成代码</cite></a>
        </div>
    </div>
    <div class="layui-fluid">
        <div class="layui-card">
            <div class="layui-card-header">生成代码配置</div>
            <div class="layui-card-body">
                <form class="layui-form w130" action="/gen/setting" method="post">
                    <div class="layui-form-item">
                        <label class="layui-form-label">数据库IP</label>
                        <div class="layui-input-block">
                            <input type="text" name="ip" value="localhost" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">数据库端口</label>
                        <div class="layui-input-inline" style="width: 80px;">
                            <input type="text" name="port" lay-verify="number" value="3306" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">用户名</label>
                        <div class="layui-input-block">
                            <input type="text" name="username" value="root" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">密码</label>
                        <div class="layui-input-block">
                            <input type="text" name="password"  class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">数据库名称</label>
                        <div class="layui-input-block">
                            <input type="text" name="database"   class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">模板名称</label>
                        <div class="layui-input-block">
                            <input type="text" name="template"   class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <button type="submit" class="layui-btn">下一步</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<!-- /.content-wrapper -->
{{ template "footer" . }}
